package cn.xiaozhu.service.facade;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
public interface IFileService {
    /**
     * 获取文件列表(根据用户Id查找)
     * @param Id
     * @return
     */
    List<cn.xiaozhu.entity.Resume> findAllFiles(Integer Id) ;

    /**
     * 上传文件
     * @param document
     * @param Id
     * @return
     */
    boolean upload(MultipartFile document, Integer Id);

    /**
     * 下载文件
     * @param fileName
     * @param request
     * @param response
     * @return
     * @throws IOException
     */
    boolean download(String fileName, HttpServletRequest request, HttpServletResponse response) throws IOException;

    /**
     * 根据fileId查找文件
     * @param fileId
     * @return
     */
    boolean delFileByFileId(Integer fileId);

}
